package com.lishe.lishe.lishe.module.me.baseAc;

import android.os.Bundle;
import android.view.KeyEvent;

import com.lishe.lishe.lishe.base.BaseActivity;

/**
 * Created by zhcasecom on 2017/9/25.
 */

public class baseAc extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {// 当keyCode等于退出事件值时
            finish();
            return false;
        } else {
            return super.onKeyDown(keyCode, event);
        }
    }

}
